package day13;

public class manager extends worker{
    double bonus;

    public manager() {
    }

    public manager(double bonus ,String name ,String id ,double salary) {
        super(id ,name ,salary);
        this.bonus = bonus;
    }

    public void work(){
        System.out.println("管理其他人");
    }

    /**
     * 获取
     * @return bonus
     */
    public double getBonus() {
        return bonus;
    }

    /**
     * 设置
     * @param bonus
     */
    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    public String toString() {
        return "manager{bonus = " + bonus + "}";
    }
}
